<tagLib name="html" />
<include file="../Public/header" />
<script>
/*	function complete(data,status){
		if (status==1)
		{
		// 更新列表
		$('baseinfo').innerHTML += 
		'<div class="result" style=\'font-weight:normal;background:#A6FF4D\'><div style="border-bottom:1px dotted silver">'+data.title+'  ['+data.email+data.create_time+']</div><div class="content">'+data.content+'</div></div>';
		}
	}*/
	function checkXh(){
		ThinkAjax.send('__URL__/checkStuExists','ajax=1&xh='+$('xh').value,'','result');
	}
</script>
<div id="main" class="main" >
<div class="content">
<div class="title">新增数据 [ <A HREF="__URL__">返回列表</A> ]</div>

<FORM METHOD=POST id="form1" action="__URL__/insert/" onsubmit="return CheckForm(this)">
<TABLE cellpadding=3 cellspacing=3>
<iterate name="list" id="voList">
<eq name="voList['FIELD']" value="xh">
<TR>
	<TD width="161" class="tRight" >{$voList.COMMENT}：</TD>
	<TD colspan="2" class="tLeft" ><INPUT TYPE="text" id="{$voList.FIELD}" <eq name="voList['FIELD']" value="xh" >onblur="checkXh();"</eq> class="<eq name="voList['FIELD']" value="xh" >bLeftRequire</eq>"  check='<eq name="voList['FIELD']" value="xh" >Require</eq>' warning="{$voList.COMMENT}不能为空" NAME="{$voList.FIELD}" size="{$voList.LENGTH}" value="{$vo[$voList['FIELD']]}" <eq name="voList['ISCODE']" value="1">readonly</eq> ></TD>
</TR>
<TR>
	<TD colspan="3" class="tRight" ><div id="result" class="none result" style="font-family:微软雅黑,Tahoma;letter-spacing:2px"></div></TD>
	</TR>
</eq>

<neq name="voList['FIELD']" value="xh">
<TR>
	<TD valign="top" class="tRight" >{$voList.COMMENT}：</TD>
	<TD class="tLeft" >
	<!--是TEXT标签的时候-->
	<eq name="voList['INPUT']" value="text">
		<INPUT TYPE="text" id="{$voList.FIELD}"  NAME="{$voList.FIELD}" size="{$voList.LENGTH}" value="{$vo[$voList['FIELD']]}" class="<eq name="voList['REQUIRE']" value="1" >bLeftRequire</eq>" check='<eq name="voList['REQUIRE']" value="1" >Require</eq>' warning="{$voList.COMMENT}不能为空" <eq name="voList['ISCODE']" value="1">readonly</eq>>	</eq>
	<!--是DATE标签的时候-->
	<eq name="voList['INPUT']" value="date">
		<INPUT TYPE="text" id="{$voList.FIELD}"  NAME="{$voList.FIELD}" class="<eq name="voList['REQUIRE']" value="1" >bLeftRequire</eq>" check='<eq name="voList['REQUIRE']" value="1" >Require</eq>' warning="{$voList.COMMENT}不能为空" size="{$voList.LENGTH}" value="{$vo[$voList['FIELD']]}" onfocus="calendar();" readonly>	
	</eq>			
	<!--是TEXTAREA标签的时候-->
	<eq name="voList['INPUT']" value="textarea">
		<TEXTAREA class="large bLeft"  NAME="{$voList.FIELD}" ROWS="5" COLS="57">{$vo[$voList['FIELD']]}</TEXTAREA>
	</eq>
	<!--是SELECT标签的时候-->
	<eq name="voList['INPUT']" value="select">		<select id="{$voList.FIELD}" name="{$voList.FIELD}" onchange="selectReturnValue('{$voList.FIELD}','{$voList.RELNAME}');">
		<option value="" >==请选择==</option><sublist name="voList['codes']" id="sub">
		<option value="{$sub['CODE']}" <eq name="vo[$voList['FIELD']]" value="$sub['CODE']" >selected</eq>>{$sub['CODENAME']}</option>
			</sublist>
		</select>
	</eq>	</TD>
</TR>
</neq>
</iterate>
<TR>
	<TD ></TD>
	<TD class="center">
	<INPUT TYPE="submit" value="保 存" class="small submit">
	<INPUT TYPE="reset" class="submit  small" value="清 空" >	</TD>
</TR>
</TABLE>
</FORM>
</div>
</div>
<!-- 主页面结束 -->
{// 加载尾部公共文件 }
<include file="../Public/footer" /> 